package com.lin.csdn.utils;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OutputSteam {
    BaseLogger baseLogger=new BaseLogger();
//输出工具
    public boolean outArticle(String string,String path) {
        try {
            FileOutputStream file = new FileOutputStream(path);
            Writer out = new OutputStreamWriter(file, StandardCharsets.UTF_8);
            out.write(string);
            out.close();
            file.close();
            return true;
        } catch (IOException e) {
            baseLogger.errorLog(String.valueOf(e));
        }
        return false;
    }
}
